<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>中恒业</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="中恒业">
  <meta name="description" content="中恒业">
  <meta name="csrf-token" content="{{ csrf_token() }}">
  <link rel="stylesheet" href="{{ asset('web/layui/css/layui.css') }}">
  <link rel="stylesheet" href="{{ asset('web/css/global.css?v=2') }}">
  <style>
    .layui-container{width: 80%}
  </style>
  @yield('styles')
</head>

<body>

  <div class="fly-header layui-bg-black">
    <div class="layui-container">
      <a class="fly-logo" href="/">
        <img style="width:110px;hight:37px;margin: -2px 5px 5px -17px;" src="http://oss-test.zhutuikehao.com/avatar/2020/01/07/2020010796957.png">
        <!--<h1 style="color:#fff">中恒业</h1>-->
      </a>
      <ul class="layui-nav fly-nav layui-hide-xs">
        <li class="layui-nav-item {{ Request::path() == 'index' ? 'layui-this' : '' }}">
          <a href="{{ url('/index') }}">任务大厅</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'advlist' ? 'layui-this' : '' }}">
          <a href="{{ url('/advlist') }}">淘客必看</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'shequn' ? 'layui-this' : '' }}">
          <a href="{{ url('/shequn') }}">社群精选单区</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'friend' ? 'layui-this' : '' }}">
          <a href="{{ url('/friend') }}">朋友圈</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'order-place' ? 'layui-this' : '' }}">
          <a href="{{ url('/order-place') }}">我是下单方</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'order' ? 'layui-this' : '' }}">
          <a href="{{ url('/order') }}">我是接单方</a>
        </li>
        <li class="layui-nav-item {{ Request::path() == 'union' ? 'layui-this' : '' }}">
          <a href="{{ url('/union') }}">已认证联盟</a>
        </li>
      </ul>

      <ul class="layui-nav fly-nav-user">
        <li class="layui-nav-item">
          <a class="layui-btn layui-btn-xs" href="//shang.qq.com/wpa/qunwpa?idkey=ce6bee4296318dc2c99efdb290a8de15accf9f27e756ae1e9915e425e1cf142e" target="_blank">QQ群</a>
        </li>
        <li class="layui-nav-item" style="padding-left: 5px">
          <a class="layui-btn layui-btn-xs" href="http://wpa.qq.com/msgrd?v=4&uin=1208127479&site=qq&menu=yes" target="_blank">客服</a>
        </li>
        @guest
          <!-- 未登入的状态 -->
          <li class="layui-nav-item">
            <a class="iconfont icon-touxiang layui-hide-xs" href="{{ url('/login') }}"></a>
          </li>
          <li class="layui-nav-item">
            <a href="{{ url('/login') }}">登录</a>
          </li>
          <li class="layui-nav-item">
            <a href="{{ url('/register') }}">注册</a>
          </li>
        @else
          <!-- 登入后的状态 -->
          <li class="layui-nav-item">
            <a class="fly-nav-avatar" href="javascript:;">
              <cite class="layui-hide-xs">{{ Auth::user()->name }}</cite>
              <!-- <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：layui 作者"></i> -->
              <!-- <i class="layui-badge fly-badge-vip layui-hide-xs">VIP3</i> -->
              <img id="user-avatar" src="{{ Auth::user()->avatar ? Auth::user()->avatar : asset('web/images/default.png') }}">
            </a>
            <dl class="layui-nav-child">
              <dd><a href="{{ url('/user-set') }}"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
              <dd><a href="{{ url('/user-recharge') }}"><i class="layui-icon" style="margin-left: 2px;font-size: 22px;">&#xe65e;</i>充值</a></dd>
              <dd><a href="{{ url('/user-home') }}"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
              <hr style="margin: 5px 0;">
              <dd><a href="{{ url('/logout') }}" style="text-align: center;">退出</a></dd>
            </dl>
          </li>
        @endguest
      </ul>
    </div>
  </div>

  @yield('content')

  <div class="fly-footer">
    <p>

      <a href="#">中恒业</a> 
      2020 &copy; <a href="#">版权所有</a>
      <a target="_blank" href="http://beian.miit.gov.cn">鲁ICP备19063644号</a>
      <a target="_blank" href="http://www.beian.gov.cn">鲁公网安备 37132202371433号</a>
      <img height="40px" src="http://oss-test.zhutuikehao.com/avatar/2020/03/28/2020032847332.jpg">
      <img height="35px" src="http://oss-test.zhutuikehao.com/avatar/2020/03/28/2020032832889.jpg">
    </p>
    <!-- <p>
      <a href="#" target="_blank">任务大厅</a>
      <a href="#" target="_blank">我是下单方</a>
      <a href="#" target="_blank">微信公众号</a>
    </p> -->
  </div>

  <script src="{{ asset('web/layui/layui.js') }}"></script>
  <script>
    layui.config({
      version: "3.0.5"
      , base: '/web/mods/'
    }).extend({
      ztk: 'index{{ env("APP_ENV") == "production" ? ".min" : "" }}'
    }).use('ztk');
  </script>
  @yield('scripts')
</body>
</html>